package com.huarui.partner.model;

import java.math.BigDecimal;
import java.util.Date;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 公 司 客 户
 * 
 * @author ycf
 * 
 */
public class Partner extends BaseDataObject {

	private static final long serialVersionUID = -1903617545323762001L;

	/**
	 * 客户
	 */
	public static String REALATION_CUSTOMER = "0";

	/**
	 * 供应商
	 */
	public static final String REALATION_SUPPLY = "1";

	/**
	 * 即是客户也是供应商
	 */
	public static final String REALATION_BOTH = "2";

	/**
	 * 主键
	 */
	private Integer id;

	/**
	 * 客户公司Id(如果客户没有注册，则是NULL)
	 */
	private Integer companyId;

	/**
	 * 本公司Id(拥有者ID，比如B是A的客户，A就是拥有者)
	 */
	private Integer ownerId;

	/**
	 * 客户公司名称
	 */
	private String name;

	/**
	 * 公司拼音码
	 */
	private String pyCode;

	/**
	 * 公司税号
	 */
	private String taxCode;

	/**
	 * 公司联系人
	 */
	private String contactor;
	/**
	 * 负责人/法人身份证号码
	 */
	private String contactorIdentityCode;

	/**
	 * 公司机构代码
	 */
	private String code;

	/**
	 * 公司简称
	 */
	private String simpleName;

	/**
	 * 公司英文名
	 */
	private String nameEn;

	/**
	 * 经营项目
	 */
	private String business;

	/**
	 * 所在地区
	 */
	private Integer areaId;

	/**
	 * 通讯地址
	 */
	private String address;

	/**
	 * 邮编
	 */
	private String postcode;

	/**
	 * 联系电话
	 */
	private String tel;

	/**
	 * 传真电话
	 */
	private String fax;

	/**
	 * 发票地址
	 */
	private String invoicAddress;

	/**
	 * 开户行
	 */
	private String bankName;

	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 银行帐号
	 */
	private String bankCode;

	/**
	 * qq 号
	 */
	private String qq;

	/**
	 * msn 号
	 */
	private String msn;

	/**
	 * 公司网址
	 */
	private String web;

	/**
	 * 折扣(默认100)
	 */
	private Integer discount = 100;

	/**
	 * 往来关系(0 客户 1 供应商 2 即是客户也是供应商)
	 */
	private String relation;

	/**
	 * 应付款
	 */
	private BigDecimal unpaid;
	/**
	 * 已付款
	 */
	private BigDecimal paid;

	/**
	 * 应收款
	 */
	private BigDecimal unreceived;

	/**
	 * 已收款
	 */
	private BigDecimal received;

	private String province;

	private String city;

	private String district;

	private String provinceId;

	private String cityId;

	/**
	 * 创建日期
	 */
	private Date gmtCreate;

	/**
	 * 修改日期
	 */
	private Date gmtModify;

	/**
	 * 是否已经删除
	 */
	private int isDelete;

	private int grantPrivacy;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Integer getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Integer ownerId) {
		this.ownerId = ownerId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getTaxCode() {
		return taxCode;
	}

	public void setTaxCode(String taxCode) {
		this.taxCode = taxCode;
	}

	public String getContactor() {
		return contactor;
	}

	public void setContactor(String contactor) {
		this.contactor = contactor;
	}

	public String getContactorIdentityCode() {
		return contactorIdentityCode;
	}

	public void setContactorIdentityCode(String contactorIdentityCode) {
		this.contactorIdentityCode = contactorIdentityCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getSimpleName() {
		return simpleName;
	}

	public void setSimpleName(String simpleName) {
		this.simpleName = simpleName;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}
	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public Integer getAreaId() {
		return areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getInvoicAddress() {
		return invoicAddress;
	}

	public void setInvoicAddress(String invoicAddress) {
		this.invoicAddress = invoicAddress;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	public String getWeb() {
		return web;
	}

	public void setWeb(String web) {
		this.web = web;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public BigDecimal getUnpaid() {
		return unpaid;
	}

	public void setUnpaid(BigDecimal unpaid) {
		this.unpaid = unpaid;
	}

	public BigDecimal getPaid() {
		return paid;
	}

	public void setPaid(BigDecimal paid) {
		this.paid = paid;
	}

	public BigDecimal getUnreceived() {
		return unreceived;
	}

	public void setUnreceived(BigDecimal unreceived) {
		this.unreceived = unreceived;
	}

	public BigDecimal getReceived() {
		return received;
	}

	public void setReceived(BigDecimal received) {
		this.received = received;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

	public int getGrantPrivacy() {
		return grantPrivacy;
	}

	public void setGrantPrivacy(int grantPrivacy) {
		this.grantPrivacy = grantPrivacy;
	}

}
